package crossrun.tool.pdf2img.control;

import androidx.lifecycle.LiveData;

import java.io.File;

public class DirListLiveData extends LiveData<File[]> {
    public DirListLiveData getFileList(final String dirPath){
        ExeThreadServics.obtain().run(new Runnable() {
            @Override
            public void run() {
                File[] files = new File(dirPath).listFiles();

                postValue(files);
            }
        });
        return this;
    }
}
